﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Vue.Admin.Models.Migrations.DBContextMigrations
{
    public partial class addtable : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "e_Sys_Menu",
                columns: table => new
                {
                    FID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    FParentID = table.Column<int>(nullable: false),
                    FName = table.Column<string>(nullable: true),
                    FUrl = table.Column<string>(nullable: true),
                    FIcon = table.Column<string>(nullable: true),
                    FSort = table.Column<int>(nullable: false),
                    FLevel = table.Column<int>(nullable: false),
                    FIsDeleted = table.Column<int>(nullable: false),
                    FAddTime = table.Column<DateTime>(nullable: false),
                    FmodifyTime = table.Column<DateTime>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_e_Sys_Menu", x => x.FID);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "e_Sys_Menu");
        }
    }
}
